package com.ktgj.customer.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ktgj.customer.mapper.TravelItineraryInfoMapper;
import com.ktgj.customer.domain.TravelItineraryInfo;
import com.ktgj.customer.service.ITravelItineraryInfoService;

/**
 * 旅游行程详情Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-11-10
 */
@Service
public class TravelItineraryInfoServiceImpl implements ITravelItineraryInfoService 
{
    @Autowired
    private TravelItineraryInfoMapper travelItineraryInfoMapper;

    /**
     * 查询旅游行程详情
     * 
     * @param travelItineraryInfoId 旅游行程详情ID
     * @return 旅游行程详情
     */
    @Override
    public TravelItineraryInfo selectTravelItineraryInfoById(Long travelItineraryInfoId)
    {
        return travelItineraryInfoMapper.selectTravelItineraryInfoById(travelItineraryInfoId);
    }

    /**
     * 查询旅游行程详情列表
     * 
     * @param travelItineraryInfo 旅游行程详情
     * @return 旅游行程详情
     */
    @Override
    public List<TravelItineraryInfo> selectTravelItineraryInfoList(TravelItineraryInfo travelItineraryInfo)
    {
        return travelItineraryInfoMapper.selectTravelItineraryInfoList(travelItineraryInfo);
    }

    /**
     * 新增旅游行程详情
     * 
     * @param travelItineraryInfo 旅游行程详情
     * @return 结果
     */
    @Override
    public int insertTravelItineraryInfo(TravelItineraryInfo travelItineraryInfo)
    {
        return travelItineraryInfoMapper.insertTravelItineraryInfo(travelItineraryInfo);
    }

    /**
     * 修改旅游行程详情
     * 
     * @param travelItineraryInfo 旅游行程详情
     * @return 结果
     */
    @Override
    public int updateTravelItineraryInfo(TravelItineraryInfo travelItineraryInfo)
    {
        return travelItineraryInfoMapper.updateTravelItineraryInfo(travelItineraryInfo);
    }

    /**
     * 批量删除旅游行程详情
     * 
     * @param travelItineraryInfoIds 需要删除的旅游行程详情ID
     * @return 结果
     */
    @Override
    public int deleteTravelItineraryInfoByIds(Long[] travelItineraryInfoIds)
    {
        return travelItineraryInfoMapper.deleteTravelItineraryInfoByIds(travelItineraryInfoIds);
    }

    /**
     * 删除旅游行程详情信息
     * 
     * @param travelItineraryInfoId 旅游行程详情ID
     * @return 结果
     */
    @Override
    public int deleteTravelItineraryInfoById(Long travelItineraryInfoId)
    {
        return travelItineraryInfoMapper.deleteTravelItineraryInfoById(travelItineraryInfoId);
    }
}
